package com.celesea.workflow.collaboration.vo;

import com.celesea.workflow.collaboration.v1.controller.request.FlowRequest;
import com.celesea.workflow.collaboration.v1.controller.request.PutRequest;
import com.celesea.workflow.core.vo.BaseFlowVo;
import org.springframework.beans.BeanUtils;

/**
 * @author JackYuan
 * @create 2017-11-28 16:59
 */
public class FlowVo extends PutRequest {

    private BaseFlowVo flow;

    public FlowVo() {
    }

    public FlowVo(FlowRequest request) {
        BeanUtils.copyProperties(request, this);
        this.flow = new BaseFlowVo(request.getFlowRequest());
    }

    public BaseFlowVo getFlow() {
        return flow;
    }

    public void setFlow(BaseFlowVo flow) {
        this.flow = flow;
    }
}
